<?php

namespace platform\controllers;

use platform\core\BaseController;
use platform\interfaces\SiteInterface;
use cm;
use platform\models\SiteModel;

class SiteController extends BaseController implements SiteInterface
{
    function actionIndex()
    {
        $data = (new SiteModel())->actionIndex();
        return Cm::$res->render($this, "index", $data, '站点管理');
    }

    function actionArea(){
        $data = (new SiteModel())->actionArea();
        return Cm::$res->render($this, "area", $data, '城市管理');
    }
}